package com.senseilearning.sensei;

import com.actionbarsherlock.app.ActionBar;
import com.actionbarsherlock.app.SherlockActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class GamesSelectionActivity extends SherlockActivity {
	private int sectionId;
	private int chapterId;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_games_selection);
		Intent intent = getIntent();
		chapterId = intent.getIntExtra("chapter", 0);
		sectionId = intent.getIntExtra("section", 0);
		ActionBar ab = getSupportActionBar();
		ab.setTitle(Chapters.getSectionNames(chapterId).get(sectionId));
	}
	
/*	//onStart and onStop are now only used for calling the analytics methods
	@Override
	public void onStart(){
		super.onStart();
		//New code for this method must be added before the easytracker line!
		EasyTracker.getInstance().activityStart(this);
		Tracker tracker = EasyTracker.getTracker();
		tracker.setCustomDimension(2, section.getName()); //misschien ook een chapter meegeven? dimension id voor een chapter is 1, voor een section 2.
		tracker.sendView();
		
	}
	
	@Override
	public void onStop() {
		super.onStop();
		//New code for this method must be added before the easytracker line!
		EasyTracker.getInstance().activityStop(this);
	}*/

	public void clickWordlist(View view) {
		Intent intent = new Intent(this, WordsViewActivity.class);
		intent.putExtra("chapter", chapterId);
		intent.putExtra("section", sectionId);
		startActivity(intent);

	}

	public void clickMultipleChoice(View view) {
		Intent intent = new Intent(this, MultipleChoiceActivity.class);
		intent.putExtra("chapter", chapterId);
		intent.putExtra("section", sectionId);		startActivity(intent);
	}

	public void clickHangman(View view) {
	/*	Intent intent = new Intent(this, HangmanActivity.class);
		intent.putExtra("chapter", chapter);
		intent.putExtra("section", section);
		startActivity(intent);*/
	}

	public void clickTypeIt(View view) {
	/*	Intent intent = new Intent(this, TypeItActivity.class);
		intent.putExtra("chapter", chapter);
		intent.putExtra("section", section);
		startActivity(intent);*/
	}

	public void clickSpeech(View view) {
	/*	Intent intent = new Intent(this, SpeechActivity.class);
		intent.putExtra("section", section);
		startActivity(intent);*/
	}
	
}
